#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@desc: .

@Project：kuberCloudTest 
@File：urls.py
@Author：admin
@Date：2024/4/9 15:29 
"""
from enum import Enum


class networkUrls(Enum):
    # 二层网络
    getL2Network = '/l2network/query.do'
    removeL2Network = '/l2network/remove.do'
    createL2Network = '/l2network/add.do'
    updateL2Network = '/l2network/update.do'
    getL2NetworkCluster = '/l2network/queryCluster.do'
    loadClusterByL2Network = '/l2network/loadCluster.do'
    unloadClusterByL2Network = '/l2network/unloadCluster.do'
    globalShareL2Network = '/l2network/shareAll.do'
    globalRecallL2Network = '/l2network/callbackAll.do'

    # VPC网络
    getVpcNetwork = '/vpcnetwork/query.do'
    createVpcNetwork = '/vpcnetwork/createVpcNetwork.do'
    removeVpcNetwork = '/vpcnetwork/removeVpcNetwork.do'
    updateVpcNetwork = '/vpcnetwork/update.do'
    globalShareVpcNetwork = '/vpcnetwork/shareAll.do'
    globalRecallVpcNetwork = '/vpcnetwork/callbackAll.do'
    updateVpcNetworkMtu = '/vpcnetwork/updateMtu.do'
    getVpcRouterByVpcNetwork = '/vpcnetwork/queryVpcRouter.do'
    loadVpcRouterByVpcNetwork = '/vpcnetwork/attachVPCrouter.do'
    unloadVpcRouterByVpcNetwork = '/vpcnetwork/detachVPCrouter.do'
    addVpcNetworkRange = '/vpcnetwork/addNetworkRange.do'
    deleteVpcNetworkRange = '/vpcnetwork/deleteIpRange.do'
    getNetworkRangeByVpcNetwork = '/vpcnetwork/queryNetworkRangeByNid.do'
    getMountableVMByVpcNetwork = '/vpcnetwork/queryVmNotInVPCnetworkByNid.do'
    getMountedVMByVpcNetwork = '/vpcnetwork/queryVmByNid.do'

    # 私有网络
    getPrivateNetwork = '/l3network/2/query.do'
    getL2NetworkByPrivateNetwork = '/l3network/private/queryLayerTwoNetwork.do'
    createPrivateNetwork = '/l3network/createPrivateNet.do'
    deletePrivateNetwork = '/l3network/deletePrivateNet.do'
    updatePrivateNetwork = '/l3network/updatePrivateNet.do'
    globalSharePrivateNetwork = '/l3network/sharePrivateNet.do'
    globalRecallPrivateNetwork = '/l3network/callbackPrivateNet.do'
    updatePrivateNetworkMTU = '/l3network/updatePrivateMtu.do'
    loadVMByPrivateNetwork = '/l3network/plugPrivateNic.do'
    unloadVMByPrivateNetwork = '/l3network/unplugPrivateNic.do'
    addPrivateNetworkRange = '/l3network/addPrivateNetworkRange.do'
    deletePrivateNetworkRange = '/l3network/deletePrivateIpRange.do'
    addPrivateNetworkDns = '/l3network/addPrivateNetDns.do'
    deletePrivateNetworkDns = '/l3network/deletePrivateNetDns.do'
    getVMByPrivateNetwork = '/l3network/private/queryVmByNid.do'
    getVMNotinPrivateNetwork = '/l3network/private/queryVmNotInL3NetworkByNid.do'
    getNetworkRangeByPrivateNetwork = '/l3network/private/queryNetworkRangeByNid.do'
    getDNSByPrivateNetwork = '/l3network/private/queryDnsByNid.do'

    # 公有网络
    getPublicNetwork = '/l3network/1/query.do'
    createPublicNetwork = '/l3network/createPublicNet.do'
    updatePublicNetwork = '/l3network/updatePublicNet.do'
    deletePublicNetwork = '/l3network/deletePublicNet.do'
    globalSharePublicNetwork = '/l3network/sharePublicNet.do'
    globalRecallPublicNetwork = '/l3network/callbackPublicNet.do'
    updatePublicNetworkMTU = '/l3network/updatePublicMtu.do'
    loadVMByPublicNetwork = '/l3network/plugPublicNic.do'
    unloadVMByPublicNetwork = '/l3network/unplugPublicNic.do'
    addPublicNetworkRange = '/l3network/addPublicNetworkRange.do'
    deletePublicNetworkRange = '/l3network/deletePublicIpRange.do'
    addPublicNetworkDns = '/l3network/addPublicNetDns.do'
    deletePublicNetworkDns = '/l3network/deletePublicNetDns.do'
    getVMByPublicNetwork = '/l3network/public/queryVmByNid.do'
    getVMNotinPublicNetwork = '/l3network/public/queryVmNotInL3NetworkByNid.do'
    getNetworkRangeByPublicNetwork = '/l3network/public/queryNetworkRangeByNid.do'
    getDNSByPublicNetwork = '/l3network/public/queryDnsByNid.do'
    getL2NetworkByPublicNetwork = '/l3network/public/queryLayerTwoNetwork.do'

    # vx_lan_pool
    getVXLanPool = '/network/query.do'
    createVXLanPool = '/network/addVxlan.do'
    deleteVXLanPool = '/network/deleteVxlan.do'
    updateVXLanPool = '/network/updateVxlan.do'
    getVXLanPoolLoadCluster = '/network/selcetClusters.do'
    getVXLanPoolUnloadCluster = '/network/selcetAllClusters.do'
    loadClusterByVXLanPool = '/network/loadCluster.do'
    unloadClusterByVXLanPool = '/network/unloadCluster.do'
    getL2NetworkByVXLanPool = '/network/selectErVxlan.do'
    createVXLanL2Network = '/network/addErVxlan.do'
    deleteVXLanL2Network = '/network/deleteErVxlan.do'
    globalShareVXLanPool = '/vxlan/shareAll.do'
    globalRecallVXLanPool = '/vxlan/callbackAll.do'
    getVXLanPoolCluster = '/vxlan/query.do'
    getVXLanPoolVin = '/vin/query.do'
    createVXLanPoolVin = '/vin/addVin.do'
    deleteVXLanPoolVin = '/vin/deleteVin.do'
    updateVXLanPoolVin = '/vin/updateVin.do'

    # vpc router
    getVpcRouterSpec = '/routerSpec/query.do'
    createVpcRouterSpec = '/routerSpec/add.do'
    updateVpcRouterSpec = '/routerSpec/update.do'
    stopVpcRouterSpec = '/routerSpec/stop.do'
    startVpcRouterSpec = '/routerSpec/start.do'
    globalShareVpcRouterSpec = '/routerSpec/share.do'
    globalRecallVpcRouterSpec = '/routerSpec/upshare.do'
    deleteVpcRouterSpec = '/routerSpec/delete.do'
    getVpcRouterSpecMirror = '/routerSpec/queryMirror.do'
    getVpcRouterSpecNetwork = '/routerSpec/queryNetwork.do'

    getVpcRouterMirror = '/vRouterIso/query.do'
    getVpcRouterMirrorServer = '/vRouterIso/queryIsoSer.do'
    saveVpcRouterMirror = '/vRouterIso/saveMirrorInf.do'
    createVpcRouterMirror = '/vRouterIso/add.do'
    exportVpcRouterMirror = '/vRouterIso/exportImage.do'
    stopVpcRouterMirror = '/vRouterIso/stop.do'
    startVpcRouterMirror = '/vRouterIso/start.do'
    deleteVpcRouterMirror = '/vRouterIso/delete.do'
